﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Model.ModelForJD
{
    /// <summary>
    /// 商品搜索类
    /// </summary>
    public class GoodsSearchForJD
    {
        /// <summary>
        /// 返回标识
        /// </summary>
        public bool success { get; set; }
        /// <summary>
        /// 返回描述
        /// </summary>
        public string resultMessage { get; set; }
        /// <summary>
        /// 返回编码
        /// </summary>
        public string resultCode { get; set; }
        public List<GoodsSearchInfoForJD> result { get; set; }
    }
    /// <summary>
    /// 商品信息类
    /// </summary>
    public class GoodsSearchInfoForJD
    {
        /// <summary>
        /// 搜索结果总记录数量
        /// </summary>
        public int resultCount { get; set; }
        /// <summary>
        /// 总页数
        /// </summary>
        public int pageCount { get; set; }
        /// <summary>
        /// 每页大小
        /// </summary>
        public int pageSize { get; set; }
        /// <summary>
        /// 当前页
        /// </summary>
        public int pageIndex { get; set; }
        /// <summary>
        /// 品牌汇总信息
        /// </summary>
        public BrandAggreGate brandAggregate { get; set; }
        /// <summary>
        /// 相关分类汇总信息
        /// </summary>
        public int categoryAggregate { get; set; }
        /// <summary>
        /// 搜索命中数据json字符串
        /// </summary>
        public int hitResult { get; set; }
    }
    public class BrandAggreGate
    {
        public List<BrandList> brandList { get; set; }
    }
    /// <summary>
    /// 品牌类
    /// </summary>
    public class BrandList
    {
        /// <summary>
        /// 品牌ID
        /// </summary>
        public string id { get; set; }
        /// <summary>
        /// 品牌名称
        /// </summary>
        public string name { get; set; }
        /// <summary>
        /// 品牌首字母拼音
        /// </summary>
        public string pinyin { get; set; }
    }
    public class PinYinAggr
    {

    }
}
